package com.its.classOrder.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.its.classOrder.pojo.ClassOrder;

import java.util.List;

/**
* @author lenovo
* @description 针对表【gym_class_order】的数据库操作Service
* @createDate 2025-04-22 23:47:58
*/
public interface ClassOrderService extends IService<ClassOrder> {
    //添加报名信息
    int addClassOrder(ClassOrder classOrder);

    //删除已经预约的课程信息
    int deleteClassOrder(Integer classOrderId);

    //根据会员需求修改报名信息
    int updateClassOrder(ClassOrder classOrder);

    //根据会员账号查询个人报名信息
    List<ClassOrder> selectClassOrderByMemberAccount(Integer memberAccount);

    //根据课程ID查询所有该课程已经报名的会员
    ClassOrder selectMemberOrderByClassId(Integer classId);

    //分页查询所有的报名信息
    Page<ClassOrder> selectAllClassOrder(Integer page,Integer size);
}
